home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / dest / definedest.c < prev    next >
C/C++ Source or Header  |  1996-07-18  |  405b  |  15 lines

  1.  
  2. #include "dest.p"
  3.  
  4. void define_dest(char *groupname)
  5. {
  6.     ndestinations++;            /* add a new destination */
  7.     destination = xrealloc(destination, ndestinations * sizeof(DESTINATION_));
  8.  
  9.                     /* clear the destination-struct */
  10.     memset(destination + ndestinations - 1, 0, sizeof(DESTINATION_));
  11.  
  12.                     /* store the destname-index */
  13.     destination[ndestinations - 1].dgroup = dgroup_index(groupname);
  14. }
  15.